The Accordion Pane Component > FAccordionPane.getScrollPosition()

 

FAccordionPane.getScrollPosition()

Availability

Flash Player 6.

Usage

myAccordion_acp.getScrollPosition ()

Parameters

none

Returns

A number indicating the scroll position of the content within the currently selected section.

Description

This method returns a number indicating the scroll position of the component. The scroll position is the current Y position of the content within the current section. The scrollbar will only appear if the setScrollBar method has been called and set to true.

Example

The following code sets the scroll position for the accordion pane and then traces it.

	myAccordionpane.setScrollPosition(110);
var pos = myAccordionPane_acp.getScrollPosition();
trace("Position: "+pos); //traces 110

 

See also

FAccordionPane.setScrollPosition()

FAccordionPane.showScrollBar()